package main

import (
	"time"
	"fmt"
)

var c chan int

func Ready(w string, sec int){
	time.Sleep(time.Duration(sec)*time.Second)

	fmt.Println(w+" ready !")
	c<-1
}
func main() {
	c= make(chan int)
	go Ready("Tea",2)
	go Ready("Ccffice",1)

	fmt.Println("I am waiting!")
	<-c
	<-c
}
